import java.util.Scanner;

public class TestDemo {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }
    }
    public static void main4(String[] args) {
        //找到既能被3整除,又能被5整除的100以内的数
        int i=1;
        while(i<=100){
            if(i%3==0&&i%5==0){
                System.out.println(i);
            }
            i++;
        }
    }
    //break与continue的区别
    public static void main3(String[] args) {
        int i=1;       //代码运行到这一行,还没有执行
        while(i<=10){
            if(i==3){
                //break;
                i++;
                continue;
            }
            System.out.println(i);
            i++;
        }

    }
    //求1!+2!+3!+4!+5!
    public static void main2(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n=scanner.nextInt();
        int i=1;
        int ret=1;
        int j=1;
        int sum=0;
        while(i<=j){
            while(i<=n){
                ret*=i;
                i++;
                sum+=ret;
            }
            System.out.println(sum);
        }




    }
    //求N!
    public static void main1(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n=scanner.nextInt();
        int i=1;
        int ret=1;
        while(i<=n){
            ret*=i;
            i++;
        }
        System.out.println(ret);
    }
}
